package com.uniview.service;

import java.util.List;

import com.uniview.entity.po.CCRelation;
import com.uniview.entity.po.OrderCCRelation;

public interface CCRelationService {

	/**
	 * 获取用户的抄送人列表
	 * 
	 * @param owner
	 * @return
	 * @throws Exception
	 */
	public List<CCRelation> findCCByOwner(String owner);

	/**
	 * 删除用户的抄送人关联
	 * 
	 * @param owner
	 * @return
	 * @throws Exception
	 */
	public boolean removeCCByOwner(String owner);

	/**
	 * 保存用户抄送人关联
	 * 
	 * @param list
	 */
	public boolean saveCCRelation(List<CCRelation> list);
	
	/**
	 * 保存工单与抄送人关联
	 * @param list
	 * @return
	 */
	public boolean saveOrderCCRelation(List<OrderCCRelation> list);
	
	/**
	 * 根据工单编号查找抄送对象
	 * @param list
	 * @return
	 */
	public List<OrderCCRelation> findOrderCCRelationByOrderId(Integer orderId);
}
